# $Id$
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Scott Horowitz <stonecrest@gmail.com>

pkgbase=python-mpd
pkgname=python2-mpd
pkgver=0.3.0
pkgrel=6
pkgdesc="Python MPD client library"
arch=('any')
url="https://pypi.python.org/pypi/python-mpd"
license=('GPL3')
depends=('python2')
conflicts=('python-mpd<=0.3.0-2')
replaces=('python-mpd<=0.3.0-2')
source=("https://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-$pkgver.tar.bz2")
sha512sums=('d1ee57659ce6d41954beadc10b26de8b3f5e2f8395c4b5ada7c00cbfef20f693de51e41fc3931118cc63eb15195d1701c74e36eabf9f71c3505f97f66587e27a')

package_python2-mpd() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  python2 setup.py install --root="${pkgdir}" --optimize=1
}
